
/* AI.css - 九江学院经济学院网站样式 */

/* 引入Normalize.css */
@import url('normalize.css');

/* 全局样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 网站头部样式 */
header {
    background-color: #b01515;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-top h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.header-links {
    display: flex;
    gap: 1rem;
}

.header-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.header-links a:hover {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* 主导航样式 */
nav {
    background-color: #b01515;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-nav {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.main-nav > li {
    position: relative;
}

.main-nav > li > a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.main-nav > li > a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 下拉菜单样式 */
.main-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li:hover > ul {
    display: block;
}

.main-nav ul li a {
    display: block;
    padding: 0.8rem 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.main-nav ul li a:hover {
    background-color: #f5f5f5;
}
/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.carousel-caption h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: #1a4a7a;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-control:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255,255,255,0.7);
}

/* 主要内容区域布局 */
.content-section {
    padding: 2rem 0;
}

.container {
    display: flex;
    gap: 2rem;
}

.main-content {
    flex: 1;
}

.sidebar {
    flex: 0 0 250px;
    order: 2; /* 将侧边栏放在右侧 */
}

/* 侧边栏样式 */
.sidebar aside {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar h2 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #1a4a7a;
    border-bottom: 2px solid #2c6bb0;
    padding-bottom: 0.5rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 0.8rem;
}

.sidebar a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.2s;
    border-left: 3px solid transparent;
    padding-left: 10px;
}

.sidebar a:hover {
    color: #2c6bb0;
    border-left-color: #2c6bb0;
}

/* 新闻公告区域样式 */
.news-container {
  display: flex;
  gap: 20px; /* 列之间的间距 */
}
.news-left {
  flex: 1; /* 左列宽度（根据需求调整，比如占1/3或固定宽度） */
}
.news-right {
  flex: 2; /* 右列宽度（占2/3或更多） */
}

.news-container {
  display: flex;
  flex-wrap: wrap; /* 自适应换行 */
  gap: 20px;       /* 元素间距 */
}
.news-card {
  flex: 1 1 300px; /* 弹性布局，最小宽度300px，自动扩展 */
}


/* 媒体聚焦区域 */
.media-focus {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.media-focus h2 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #b01515;
    border-bottom: 2px solid #b01515;
    padding-bottom: 0.5rem;
}

.media-content {
    margin-top: 1rem;
}

.media-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.media-content a {
    color: #2c6bb0;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #2c6bb0;
    border-radius: 3px;
    transition: all 0.3s;
}

.media-content a:hover {
    background-color: #2c6bb0;
    color: white;
    text-decoration: none;
}

/* 网站页脚样式 */
footer {
    background-color: #696d70fc;
    color: #ecf0f1;
    padding: 2rem 0 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.contact-info h3, .friend-links h3 {
    color: #ecf0f1;
    margin-top: 0;
    font-size: 1.2rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.friend-links ul {
    list-style: none;
    padding: 0;
}

.friend-links li {
    margin-bottom: 0.5rem;
}

.friend-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s;
}

.friend-links a:hover {
    color: #ecf0f1;
    text-decoration: underline;
}

.copyright {
    background-color: #1a252f;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .main-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav > li {
        width: 100%;
        text-align: center;
    }
    
    .main-nav > li > a {
        padding: 0.8rem 1rem;
    }
    
    .main-nav ul {
        position: static;
        width: 100%;
        box-shadow: none;
    }
    
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        flex: none;
        order: 1; /* 在小屏幕上侧边栏显示在顶部 */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .carousel {
        height: 250px;
    }
    
    .news-section header, .notice-section header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .news-list li, .notice-list li {
        flex-direction: column;
    }
    
    .news-list time, .notice-list time {
        margin-bottom: 0.3rem;
    }
}